package com.sta.oldman.enums;

import lombok.Getter;

/**
 * @author: LunBoWang
 * @description: 校验用户信息枚举类
 * @date: 2025/7/14 上午11:53
 * @version: 1.0
 */

@Getter
public enum CheckUserEnum {
    PHONE_ERROR(1001,"手机号格式错误"),
    USER_EXIST(1002,"用户已存在"),
    USERNAME_OR_PASS_ERROR(1003,"账号或密码错误"),
    PASSWORD_ERROR(1004,"密码错误"),
    USERNAME_ERROR(1005,"用户名错误"),
    REGISTER_ERROR(1006,"注册失败"),
    USER_OR_PASS_ERROR(1007,"用户名和密码不能包含空格或为空"),
    LEN_ERROR(1008,"用户名和密码长度在6~12之间"),
    USER_NOT_EXIST(1009,"用户不存在"),
    EMAIL_ERROR(1010,"邮箱格式错误"),
    CODE_ERROR(1011,"验证码错误"),
    CODE_EXPIRE(1012,"验证码过期"),
    EMAIL_EXIST(1013,"邮箱已存在"),
    ;

    private int code;
    private String message;
     CheckUserEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
